<template>
	<view class="row_box">
		<view class="left">
			<text class="star" v-if="require">*</text>
			<text class="size">{{title}}</text>
		</view>
		<view class="right" >
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '',
				required: true
			},
			require:{
				type: Boolean,
				default: true,
				required: true
			}
		},
		methods:{
		}
	}
</script>

<style lang="scss" scoped>
	.row_box {
		display: flex;
		flex-direction: row;
		align-items: center;
		width: 622rpx;
		

		.right {
			display: flex;
			flex-direction: row;
			align-items: center;
			z-index: 999;
		}
	}
	.left{
		display: flex;
		flex-direction: row;
		align-items: center;
		flex: 1;
		.star{
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC-Bold;
			font-weight: 700;
			text-align: left;
			color: #f37364;
		}
		.size{
			font-size: 28rpx;
			font-family: PingFang SC, PingFang SC-Bold;
			font-weight: 700;
			text-align: left;
			color: #333333;
		}
	}
</style>